home *** CD-ROM | disk | FTP | other *** search
/ The Trig Explorer / The Trig Explorer.iso / pc / explorer / function.dxr / 00141.ls < prev    next >
Encoding:
Text File  |  1997-07-22  |  959 b   |  30 lines

  1. property position
  2.  
  3. on mouseDown me
  4.   set the cursor of sprite the spriteNum of me to [member "Closed hand", member "Closed Hand Mask"]
  5.   repeat while the stillDown
  6.     set the castNum of sprite the clickOn to cast "adjacent"
  7.     set the locH of sprite the clickOn to the mouseH
  8.     set the locV of sprite the clickOn to the mouseV
  9.     updateStage()
  10.   end repeat
  11.   if sprite the clickOn within 4 then
  12.     set the castNum of sprite 11 to cast "adjacent"
  13.   end if
  14.   if sprite the clickOn within 3 then
  15.     set the castNum of sprite 12 to cast "adjacent"
  16.   end if
  17.   doFunction()
  18.   set the cursor of sprite the spriteNum of me to [member "hand", member "Hand Mask"]
  19.   set the loc of sprite the spriteNum of me to position
  20. end
  21.  
  22. on beginSprite me
  23.   set the cursor of sprite the spriteNum of me to [member "hand", member "Hand Mask"]
  24.   set position to the loc of sprite the spriteNum of me
  25. end
  26.  
  27. on endSprite me
  28.   set the cursor of sprite the spriteNum of me to 0
  29. end
  30.